/* $(document).ready(function(){
    $("#form").validate({       
    errorContainer: "#errorbox",
    errorLabelContainer: "#errorbox ul",
    wrapper: "li",
    rules: {
    	name: {
    		required: true,
    		minlength: 2
    	},
    	email: {
    		required: "#csub:checked",
    		email: true,
    	},
    	comment: "required"
    },
    messages: {
    	comment: "This is a comment form. Why in the heck would you leave the comment blank?",
    	email: {
    		required: "Dude, you want the newsletter, but you didn't enter an email address?",
    		email: "Email addresses are of the form user@host. Not yourRstupid."
    	},
    	name: {
    		required: "Stand up for your comments or go home.",
    		minlength: jQuery.format("You need to use at least {0} characters for your name.")
    	}
    }
    
    });
});*/
$(document).ready(function(){
    $("#formLogin").validate({       
    errorContainer: "#errorbox",
    errorLabelContainer: "#errorbox ul",
    wrapper: "li",
    rules: {
    	txtUsuario: {
    		required: true,
    		minlength: 6
    	},
    	txtContra: {
    		required: true,
    		minlength: 4
    	},
    },
    messages: {    
    	txtUsuario: {
    		required: "Usuario es obligatorio.",
    		minlength: jQuery.format("Usuario de ser mayor o igual {0} caracteres.")
    	},         
        txtContra: {
    		required: "Contraseña es obligatorio.",
    		minlength: jQuery.format("Contraseña de ser mayor o igual {0} caracteres.")
    	}
    }
    
    });
});